package com.juzipi.demo.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("token")
public class Token {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String token;
    private Long userId;

    private Token(){

    }

    private static class TokenInstance{
        private static final Token INSTANCE = new Token();
    }

    public static Token getInstance(){
        return TokenInstance.INSTANCE;
    }

}
